CV Data Access Workshop

Code for R exercises

If you have a GitHub account:

  • Fork the repo
  • Clone the forked repo to a local drive
  • Open the .Rproj file on your machine
  • Navigate to the script folder and open the either the ‘animation_code.R’ file or the ‘DetectionPlotCode.R’ file

If you don’t have a github account:

  • Open RStudio
  • Click on ‘File’ ==> Click “New Project” ==> Click ‘New Directory’ ==> Click ‘New Project’
  • Name the Directory ==> Optional: Check the ‘Open in New Session’ Box ==> Click ‘Create Project’
  • In the ‘Files’ pane (usually lower right panel) click on the ‘New Folder’ Button and add a ‘script’ folder
  • Click the ‘Add’ Button (usually upper left), and add a new script file

  • On the GitHub Webpage
  • Click on the ‘script’ folder
  • Click on the either the ‘animation_code.R’ file or the ‘DetectionPlotCode.R’ file
  • Click the ‘Raw’ Button
  • Click ctrl/cmd + A to highlight all code
  • Click ctrl/cmd + C to copy all of the code
  • Navigate back to RStudio
  • Click ctrl/cmd + V to paste it all in your newly created script file